<?php
header ( 'content-type:text/html; charset=utf-8' );
define('DB_DSN','mysql:dbname=shu;charset=utf8');
define('DB_USER','root');
define('DB_PASSWORD','');

function dbselect($sql,$data=null){
	$pdo = new PDO (DB_DSN,DB_USER,DB_PASSWORD);
	$s = $pdo->prepare ($sql);
	$s->execute ($data);
	return $user = $s->fetch ( PDO::FETCH_NAMED );
}
?>



